<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/common/default.jsp"%>
<html>
	<head>
	    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	    <title>新建项目</title>
		<link type="text/css" rel="stylesheet" href="${ctx}/static/tools/jquery-validationEngine/validationEngine.jquery.css"></link>
		<link rel="stylesheet" href="${ctx}/static/threadui/css/select_css/style.css" />
		<link rel="stylesheet" href="${ctx}/static/threadui/css/select_css/select.css" />
		<link type="text/css"  rel="stylesheet" href="${ctx}/static/threadui/css/style.css">
	    <style type="text/css">
			.select_option{
				width: 180px;
				z-index: 1;
				position: absolute;
			}
			.select_showbox{
				width: 175px;
			}
			.checkRole{
				width: 45%;
				float: left;
				border-radius: 3px;
				box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
				cursor: text;
				line-height:22px;
				padding: 4px 6px;
				border: 1px solid #CAC5C5;
				margin-top: 5px;
				min-height: 100px;
				height: auto;
			}
			.checkRole attr{
				color: red;
			}
			.tenant_fill{width:100%}
			.tag{
				color: white;
				margin-right: 2px;
				padding: 0.2em 0.6em 0.3em;
				border-radius: 0.25em;
				color: white;
				font-size: 95%;
				line-height: 20px;
				text-align: center;
				white-space: nowrap;
				margin-top: 1px;
			}
			.label-success{
				background-color: #29C129;
			}
			.label-default{
				background-color: #7E7575;
			}
			.tag [class="tag-remove"]::after{
				content: "x";
				padding: 0.2px;
				cursor: pointer;
				font-weight: bold;
				margin-left: 5px;
			}
			.check_cinema_li{
				background-color: #F3F8FF;
				height: 30px;
				line-height: 30px;
				margin-top: 2px;
			    padding-left: 10px;
			    cursor: pointer;
			    border-radius: 4px;
   			}
			.nocheck_cinema_li{
				background-color: #F3F8FF;
				height: 30px;
				line-height: 30px;
				margin-top: 2px;
				padding-left: 10px;
				cursor: pointer;
			    border-radius: 4px;
			}
			.checked_div{
				height: 239px;
			}
			.positionSelect .select_box{
				margin-left: 0px;
			}
			.positionSelect{
				margin-right: 50px !important;
			}
	    </style>
	</head>
	<body>
		<div class="cinema_tip">
		    <div class="cinema_subject clearfix">
		        <div class="cinema_title">
		            <a href="${ctx}/sys/apply/toSearch">用工管理</a> >
		            <a href="${ctx}/sys/apply/toSearch" class="cinema_option">用工申请</a> >
		            <a href="javascript:void(0);" class="cinema_option">审核</a>
		        </div>
		        <a href="${ctx}/sys/apply/toSearch" class="movie_return">返回列表</a>
		    </div>
		</div>
		<div class="cinema_list">
			<form class="form-horizontal"  role="form" id="employApplyForm" name="employApplyForm" method="post">
				<div class="movie_list">
					<dl class="movie_fill">
						<dt class="movie_word clearfix">
							<p>申请编号：</p>
						</dt>
						<dd class="mleft_99">
							<div class="movie_type cinema_feed">
								<input id="name" type="text" name="name" value="" />
							</div>
						</dd>
					</dl>
					<div class="clearfix"></div>
					<dl class="movie_fill">
						<dt class="movie_word clearfix">
							<p>内容：</p>
						</dt>
						<dd class="mleft_99">
							<div class="movie_type cinema_feed">
								<input id="manager" type="text" name="manager" value="" />
							</div>
						</dd>
					</dl>
					<div class="clearfix"></div>
					<dl class="movie_fill">
						<dt class="movie_word clearfix">
							<p style="background-image: none;">工程类别 ：</p>
						</dt>
						<dd class="mleft_99">
							<div class="movie_type cinema_feed">
								<input id="district" type="text" name="district" value=""  />
							</div>
						</dd>
					</dl>
					<div class="clearfix"></div>
					<dl class="movie_fill">
						<dt class="movie_word clearfix">
							<p>工程量：</p>
						</dt>
						<dd class="mleft_99">
							<div class="movie_type cinema_feed">
								<input id="manager" type="text" name="manager" value="" />
							</div>
						</dd>
					</dl>
					<div class="clearfix"></div>
					<dl class="movie_fill">
						<dt class="movie_word clearfix">
							<p>施工工时：</p>
						</dt>
						<dd class="mleft_99">
							<div class="movie_type cinema_feed">
								<input id="manager" type="text" name="manager" value=""  />
							</div>
						</dd>
					</dl>
					<div class="clearfix"></div>
					<dl class="movie_fill">
						<dt class="movie_word clearfix">
							<p>工时单价：</p>
						</dt>
						<dd class="mleft_99">
							<div class="movie_type cinema_feed">
								<input id="manager" type="text" name="manager" value=""  />
							</div>
						</dd>
					</dl>
					<div class="clearfix"></div>
					<dl class="movie_fill">
						<dt class="movie_word clearfix">
							<p>费用：</p>
						</dt>
						<dd class="mleft_99">
							<div class="movie_type cinema_feed">
								<input id="manager" type="text" name="manager" value=""  />
							</div>
						</dd>
					</dl>
					<div class="clearfix"></div>
					<dl class="movie_fill">
						<dt class="movie_word clearfix">
							<p>是否合同外：</p>
						</dt>
						<dd class="mleft_99">
							<div class="movie_type cinema_feed">
								<input id="manager" type="text" name="manager" value=""   />
							</div>
						</dd>
					</dl>
					<div class="clearfix"></div>
					
					<dl class="movie_fill">
						<dt class="movie_word clearfix">
							<p style="background-image: none;">项目状态: </p>
						</dt>
						<dd class="mleft_99">
							<div class="movie_type cinema_feed positionSelect">
								<select id="status" name="status">
									<option class="department_opt" value="">选择项目状态</option>
										<option class="department_opt" value="1">审核通过</option>
										<option class="department_opt" value="0">审核不通过</option>
								</select>
							</div>
						</dd>
					</dl>
					
					<a class="movie_continue">
						<input type="submit" id="submit" value="提交" class="cinema_inquiry" />
					</a>
				</div>
			</form>
		</div>
		<script type="text/javascript" src="${ctx}/static/tools/jquery-validationEngine/jquery.validationEngine.js"></script>
		<script type="text/javascript" src="${ctx}/static/tools/jquery-validationEngine/jquery.validationEngine-cn.js"></script>
		<script type="text/javascript">
			function sysProInfoAdd() {
				if ($("#sysProAddForm").validationEngine("validate")) {
					alert('ddsfad');
					var saveDataAry=[];  
			        var data1={"name":"test","manager":"gz"};  
					var result = true;
					$.ajax({
						type : "POST",
						dataType : "json",
			            contentType:"application/json",
						async : false,
						url : '${ctx}/sys/sysProjectMan/ProjectInfo/add',
						//data : $('#sysProAddForm').serialize(),
						data:JSON.stringify(saveData), 
						success : function(data) {
							if (data != undefined && data.status != undefined
									&& data.status.trim() == '0') {
								result = true;
								alert("保存成功！");
								window.location.href = $("#userinfo_list_href").attr("href");
							} else {
								result = false;
								alert(data.error);
							}
						},
						error : function(data) {
							result = false;
							alert(data.data);
						}
					});
				}
				return false;
			}
		</script>
	</body>
</html>